Skip to content

Prevent Android reviewer Azure CLI permission denials - #12441

Merged
jonathanpeppers merged 3 commits into
mainfrom
copilot/aw-fix-missing-tools
Aug 19, 2026
Merged

jonathanpeppers merged 3 commits into
mainfrom
copilot/aw-fix-missing-tools

Conversation

Copilot AI commented Aug 19, 2026 •

Copy link
Copy Markdown
Contributor

The Android PR Reviewer reported Azure DevOps status queries as missing because compound shell invocations were rejected by its scoped command allowlist.

  • Workflow guidance

    • Require standalone az devops invoke calls with literal arguments.
    • Disallow variable preambles, chaining, pipes, and redirection.
  • Generated workflow

    • Refresh the lock-file metadata for the updated prompt.

Copilot AI and others added 2 commits August 19, 2026 13:56
Co-authored-by: jonathanpeppers <840039+jonathanpeppers@users.noreply.github.com>
Co-authored-by: jonathanpeppers <840039+jonathanpeppers@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix missing Azure DevOps CLI tools in Android PR Reviewer Prevent Android reviewer Azure CLI permission denials Aug 19, 2026
Copilot AI requested a review from jonathanpeppers August 19, 2026 14:00
@jonathanpeppers
jonathanpeppers marked this pull request as ready for review August 19, 2026 14:06
Copilot AI lite review requested due to automatic review settings August 19, 2026 14:06

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the Android PR Reviewer agent workflow guidance to avoid Azure CLI permission denials caused by scoped-command allowlist restrictions, and refreshes the generated lock metadata to match the updated prompt.

Changes:

  • Adds a constraint requiring az devops invoke to be executed as standalone shell calls with literal arguments (no chaining/pipes/redirection/variable preambles).
  • Updates the workflow lockfile metadata (body_hash) to reflect the modified workflow content.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
.github/workflows/android-reviewer.md Adds explicit Azure DevOps CLI invocation constraints to prevent allowlist rejections.
.github/workflows/android-reviewer.lock.yml Refreshes generated gh-aw metadata to align with the updated workflow body.

@jonathanpeppers

Copy link
Copy Markdown
Member

@dalexsoto review

@jonathanpeppers jonathanpeppers added the ready-to-review This PR is ready to review/merge, I think any CI failures are just flaky (ignorable). label Aug 19, 2026
@jonathanpeppers
jonathanpeppers enabled auto-merge (squash) August 19, 2026 16:59

@dalexsoto dalexsoto left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The standalone literal az devops invoke guidance addresses the scoped-command allowlist failure, and the generated workflow lock metadata is in sync.

@jonathanpeppers
jonathanpeppers merged commit 38b0434 into main Aug 19, 2026
45 checks passed
@jonathanpeppers
jonathanpeppers deleted the copilot/aw-fix-missing-tools branch August 19, 2026 17:20
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 19, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

ready-to-review This PR is ready to review/merge, I think any CI failures are just flaky (ignorable).

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[aw] Android PR Reviewer is missing required tool

4 participants